﻿// This source file is part of WallpaperControl, a tool for automatic changing 
// of the desktop wallpaper.
// 
// Visit http://www.wallpaper-control.xe.cx/ and 
// http://wpcontrol.codeplex.com/ for more.
//
// Copyright (c) 2009 Niklas Kroll
//
// Licensed under the GPLv2.
// See http://www.gnu.org/licenses/gpl-2.0.html for details.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace wpControl1
{
    /// <summary>
    /// Contains changes all settings for WallpaperControl.
    /// </summary>
    class SettingsManager
    {
        #region Settings
        /// <summary>
        /// Indicates whether WallpaperControl should start with windows.
        /// </summary>
        internal bool StartWithWindows;
        /// <summary>
        /// Indicates whether WallpaperControl should start with showing the 
        /// ControlPanel.
        /// </summary>
        internal bool StartWithControlPanel;

        /// <summary>
        /// Indicates whether a balloontip is shown when a wallpaper is changed.
        /// </summary>
        internal bool ChangeInfo;
        /// <summary>
        /// Indicates whether a ballontip should be shown when WallpaperControl starts 
        /// running in background.
        /// </summary>
        internal bool RunningInfo;
        /// <summary>
        /// Indicates whether a ballontip should be shown when WallpaperControl
        /// performs a loop. Only if looping is enabled.
        /// </summary>
        /// <seealso cref="Program.SettingsManager.LoopWallpaper"/>
        internal bool LoopingInfo;

        /// <summary>
        /// Indicates whether WallpaperControl should start at the beginning of the image 
        /// list if the end was reached.
        /// </summary>
        internal bool LoopWallpapers;
        #endregion

        /// <summary>
        /// Loads standard values for the settings.
        /// </summary>
        internal void LoadPresets()
        {
            StartWithWindows = true;
            StartWithControlPanel = true;

            ChangeInfo = true;
            RunningInfo = true;
            LoopingInfo = false;

            LoopWallpapers = false;
        }
    }
}
